-
-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[14.0][IMP] l10n_it_ricevute_bancarie: Issue riba without admin permissions #3352
[14.0][IMP] l10n_it_ricevute_bancarie: Issue riba without admin permissions #3352
Conversation
merge? |
action = act_obj.browse(action_id) | ||
action_vals = action.read()[0] | ||
action_xml_id = act_obj.browse(action_id).xml_id | ||
action_vals = self.env["ir.actions.act_window"]._for_xml_id(action_xml_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
credo che tutta questa parte:
l10n-italy/l10n_it_ricevute_bancarie/wizard/wizard_riba_issue.py
Lines 139 to 150 in a470eb9
mod_obj = self.env["ir.model.data"] | |
act_obj = self.env["ir.actions.act_window"] | |
action = mod_obj.get_object_reference( | |
"l10n_it_ricevute_bancarie", "distinta_riba_action" | |
) | |
view = mod_obj.get_object_reference( | |
"l10n_it_ricevute_bancarie", "view_riba_distinta_form" | |
) | |
action_id = action and action[1] or False | |
action_xml_id = act_obj.browse(action_id).xml_id | |
action_vals = self.env["ir.actions.act_window"]._for_xml_id(action_xml_id) | |
action_vals["views"] = [(view and view[1] or False, "form")] |
possa essere sostituita con una singola chiamata:
action_vals = self.env["ir.actions.act_window"]._for_xml_id("l10n_it_ricevute_bancarie.distinta_riba_action")
a470eb9
to
4a6913e
Compare
@GSLabIt ci siamo? |
visto ora che si sono rotti i test |
I test son rotti da #3366 , ci sta lavorando @odooNextev |
@odooNextev rebase? |
4a6913e
to
232b4b8
Compare
This PR has the |
@OCA/local-italy-maintainers merge? |
/ocabot merge patch |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at 66c4308. Thanks a lot for contributing to OCA. ❤️ |
#3313